import request from "../../utils/request"
import API from "../api"
import { BannerDataType, NavDataType } from "./type"

// banner数据
export const reqBanner = () => request.get<any, BannerDataType>(API.BANNER)

export const reqNav = () => request.get<any, NavDataType>(API.NAV)


//搜索框数据
export const reqSearch = (keyword: string) => request.get<any, any>(API.SEARCH + `?keyword=${keyword}`)